#cmake最低版本需求，不加入此行会受到警告信息
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
 #项目名称
PROJECT(BoostCoroutine)
#把当前目录(.)下所有源代码文件和头文件加入变量SRC_LIST
AUX_SOURCE_DIRECTORY(. SRC_LIST)

set(Boost_INCLUDE_DIR "G:/boost_1_72_0")

set(Boost_CONTEXT "G:/boost_1_72_0/bin.v2/libs/context/build/msvc-14.1/debug/address-model-64/link-static/threading-multi/libboost_context-vc141-mt-gd-x64-1_72.lib")
set(Boost_COROUTINE "G:/boost_1_72_0/bin.v2/libs/coroutine/build/msvc-14.1/debug/address-model-64/link-static/threadapi-win32/threading-multi/libboost_coroutine-vc141-mt-gd-x64-1_72.lib")

include_directories(${Boost_INCLUDE_DIR})

#find_package(Boost REQUIRED COMPONENTS context coroutine)


#生成应用程序 hello (在windows下会自动生成hello.exe)
ADD_EXECUTABLE(${PROJECT_NAME} ${SRC_LIST})


target_link_libraries(${PROJECT_NAME} ${Boost_CONTEXT} ${Boost_COROUTINE})